systemd.user.services.<name>.stopIfChanged
If set, a changed unit is restarted by calling
systemctl stop in the old configuration,
then systemctl start in the new one.
Otherwise, it is restarted in a single step using
systemctl restart in the new configuration.
The latter is less correct because it runs the
ExecStop commands from the new
configuration.
- Type
boolean- Default
true- Declared
- <nixpkgs/nixos/modules/system/boot/systemd/user.nix>